﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Ch.Admin.Bfs.Sms.Sdmx.Extension.CodeBook.Meta
{

    public class HierarchyNode
    {
        public string Descr { get; set; }
        public string Name { get; set; }
        public string Id { get; set; }
        public object Tag { get; set; }

        public bool HasDetail { get; set; }
        public string refArt { get; set; }

        private Hierarchy _nodes;
        public Hierarchy Nodes
        {
            get { return _nodes; }
        }

        public HierarchyNode(string id, string n, object ob)
        {
            Name = n;
            Id = id;
            Tag = ob;
            Descr = string.Empty;
            _nodes = new Hierarchy();
        }
        public HierarchyNode(string id, string n, string d, object ob)
        {
            Name = n;
            Id = id;
            Tag = ob;
            Descr = d;
            _nodes = new Hierarchy();
        }


    }

    public class Hierarchy : List<HierarchyNode>
    {

    }


}
